package com.tangruojie.domain;

/**
 * 响应码
 */
public class ResponseCode {

    public static final Integer SAVE_SUCCESS = 20011; // 保存成功
    public static final Integer DELETE_SUCCESS = 20021; // 删除成功
    public static final Integer UPDATE_SUCCESS = 20031; // 修改成功
    public static final Integer GET_SUCCESS = 20041; // 查询成功
    public static final Integer LOGIN_SUCCESS = 20051; // 登录成功
    public static final Integer LOGOUT_SUCCESS = 20061; // 登出成功

    public static final Integer SAVE_ERROR = 20010; // 保存失败
    public static final Integer DELETE_ERROR = 20020; // 删除失败
    public static final Integer UPDATE_ERROR = 20030; // 修改失败
    public static final Integer GET_ERROR = 20040; // 查询失败
    public static final Integer LOGIN_ERROR = 20050; // 登录失败
    public static final Integer LOGOUT_ERROR = 20060; // 登出失败

    // 未认证
    public static final Integer UNAUTHENTICATED = 40001;
    // 未授权
    public static final Integer UNAUTHORIZED = 40003;

}
